package com.dadaguai.enums;

/**
 * 用户积分类型枚举
 */
public enum UserIntegralEnum {
    REGISTER(1,"注册",50),
    USE_DOWNLOAD_ATTACHMENT(2,"下载附件",-5),
    DOWNLOAD_ATTACHMENT(3,"附件被下载",5),
    POST_COMMENT(4,"发布评论",1),
    POST_ARTICLE(5,"发布文章",10),
    ADMIN(6,"管理员操作",0),
    DEL_COMMENT(7,"删除评论",-1),
    DEL_ARTICLE(8,"删除文章",-10);

    private Integer type;
    private String desc;
    private Integer value;

    UserIntegralEnum(Integer type, String desc, Integer value) {
        this.type = type;
        this.desc = desc;
        this.value = value;
    }

    public Integer getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }

    public Integer getValue() {
        return value;
    }
}
